import http from '../indexByClass'
import menuList from '../../assets/json/authMenuList.json'

// 获取菜单列表
export const getMenuList = () => {
  return Promise.resolve(menuList)
  return http.get("https://apifoxmock.com/m1/4896618-4552935-default/menu/list?apifoxToken=lXiMdOHkTBbsBYgurFLS4D7FtjTYwHZA");
}

export const loginApi = (data: any = {}) => {
  return http.post("https://apifoxmock.com/m1/4896618-4552935-default/login", data, {headers:{apifoxToken: "lXiMdOHkTBbsBYgurFLS4D7FtjTYwHZA"}});
}